export default {
    computed: {
        style() {
            let width = typeof(this.width) === 'number' ? this.width + 'px': this.width
            return {
                width: width,
                top: this.top + 'px',
                left: this.left + 'px',
                height: this.height + 'px',
                zIndex: this.zIndex
            }
        },
    },
    methods: {
        bodyDown(ev) {
            let target = ev.target || ev.srcElement;
            ev.stopPropagation();
            ev.preventDefault();
            console.log(target)
        },
        stickDown(stick) {
            if (!this.isResizable) {
                return
            }
            this.stickDrag = true;
            console.log(stick)
        },
        mousemove(ev) {
            ev.stopPropagation();
        }
    },
    mounted() {
        // layoutEl.addEventListener('mousemove', this.mousemove)
    },
}